package cn.pcManage.shopManage.controller;

import cn.common.common.model.ServerResponse;
import cn.common.shop.model.BaseFreightTemplet;
import cn.pcManage.shopManage.service.IFreightTempletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

@RestController
@RequestMapping("/shopFreight")
public class FreightTempletController {
    @Autowired
    IFreightTempletService iFreightTempletService;

    @PostMapping(value = "/getFreightTempletList")
    public ServerResponse<?> getFreightTempletList(@RequestBody BaseFreightTemplet baseFreightTemplet){
        return iFreightTempletService.getFreightTempletList(baseFreightTemplet);
    }

    @PostMapping(value = "/updateFreightTemplet")
    public ServerResponse<?> updateFreightTemplet(@RequestBody Map<String,Object> maps){
        return iFreightTempletService.updateFreightTemplet(maps);
    }
}
